草庐IT

C++ Boost 多精度 cpp_int

全部标签

windows - Boost spirit : assertion fails under Windows but not Linux. 为什么?

[用完整的程序和版本更新替换代码]下面的代码在Windows下失败并显示以下消息(抱歉手动翻译自法语,我不知道如何强制VisualC++以英语工作)。这是在Windows下。它在Linux下工作。你可以编译Linux:gccLimaTokenizerParser.cpp-oLimaTokenizerPars-lboost_system-mt-lstdc++Windows(失败):clLimaTokenizerParser.cpp/Ic:\boost\path\include/EHsc我在Windows和Boost1.48下使用Boost1.50和VisualC++2010和Linux下

c++ - 正则表达式迭代器在 Cpp 中不起作用

我在VisualStudio2010上使用C++(我不认为它是v11标准,但我还没有检查过)。我正在尝试使用以下代码提取tracert的IP地址:#include#include#include#includeusingnamespacestd;typedefregex_iteratorregexp;#defineMAX_BUFFER255intmain(){stringout;charbuffer[MAX_BUFFER];smatchm;regexe("1.+\\[(.+)\\]");FILE*stream=_popen("tracertSOMEHOSTNAME","r");whil

c++ - 开发-C++/TDM-GCC : Linkage Problems with Boost Libaries Downloaded from boost. 组织

我正在尝试在Dev-C++(tdm-gcc4.7.1)中使用regex。我已经从boost.org下载了Boost库并解压到C:\ProgramFiles(x86)\Dev-Cpp\boost并在Dev-C++中添加C:\ProgramFiles(x86)\Dev-Cpp\boost\libs去图书馆。包含路径(C/C++):C:\ProgramFiles(x86)\Dev-Cpp\boostmain.cpp:#includeusingnamespaceboost;intmain(){strings("sometxtPING:665454some_text");smatchmt;reg

python - 在 Windows 8.1 上安装 Boost Python,正确设置工具链

我正在尝试安装BoostPython,但是http://www.boost.org/doc/libs/1_55_0/libs/python/doc/tutorial/doc/html/python/hello.html对我来说太压缩了。我正在从Linux切换到Windows,设置所有技术性的东西让我抓狂:)所以当我按照说明操作时http://www.boost.org/doc/libs/1_55_0/more/getting_started/windows.html#prepare-to-use-a-boost-library-binary并尝试执行bootstrap.bat它提示缺少

c++ - 使用 boost.process 同时读取和写入 child 的 stdio

我正在尝试使用类似这样的boost.process写入和读取child的stdio:boost::asio::io_servicewriteService,readService;bp::async_pipein{writeService};bp::async_pipeout{readService};bp::childprocess(CompressCmd.c_str(),bp::std_inout);Buffersrc;src.reserve(4*1024*1024);integer_typeread=0;//std::atomic_int64_ttotalWrite{0};int

c++ boost计算函数花费的时间

再次问好一个boost问题:我需要计算在我的boost线程中我的函数花费的时间:这里是代码:boost::posix_time::microsecondstes(12);inti=0;while(true){boost::posix_time::ptimestart=boost::posix_time::microsec_clock::local_time();myFunction();boost::this_thread::sleep(tes);boost::posix_time::ptimeend=boost::posix_time::microsec_clock::local_t

asp.net - Windows Azure 定价精度

关闭。这个问题是off-topic.它目前不接受答案。想改进这个问题吗?Updatethequestion所以它是on-topic用于堆栈溢出。关闭10年前。Improvethisquestion我正在尝试估算在WindowsAzure上开发项目的成本。但有些统计数据有点模糊。这是我的问题:存储您如何计算/估计您的存储交易数量。举个例子,如果一个用户下载一个1Mo的文件,有多少笔交易?Web和辅助角色实例如果你有一个Web角色(暂存)并且你停用了它,我的意思是,他的状态是停止的。你付钱吗?您只需要停止它还是删除整个托管服务。带宽你如何估计你的带宽。(以后可能会有其他问题)非常感谢您的回

c++ - 按值传递 std::function<bool (int)>

我是想曝光typedefstd::functionFilter;这是的一部分#include这样用户就可以创建过滤器并将其传递到我的组件中进行处理。该要求要求处理不能在模板函数中完成。我知道在接口(interface)上使用STL不是一个好的做法,因为Filter类型的大小取决于STL实现。除了原始函数指针或由模板函数接收的仿函数,我还有哪些替代选择。 最佳答案 大小在这里不是很重要,但如果使用您的库的某个人使用不同的STL实现,那么您的代码将无法使用,那么另一种选择是什么?我将为此使用一个接口(interface)(纯虚拟类):s

c++ - 终止 boost 线程 (C++)

我有一个问题,我需要终止boost线程。并从主线程执行此操作。使用标志是不合适的。请帮我。我需要Windows解决方案。 最佳答案 请阅读thefollowingquestion的答案.尽管如此,如果您必须在Windows上终止线程,您可以这样做:TerminateThread(yourThread.native_handle()); 关于c++-终止boost线程(C++),我们在StackOverflow上找到一个类似的问题: https://stacko

Windows:Boost 和 CMake

我已经尝试了很长时间来找出问题,但我不能..所以我在这里,我很抱歉。一些信息:我的系统是Windows7,64位专业版,带有VisualStudio10和MinGW我使用以下方法编译了Boost(1.53.0):bootstrap.batmingw.\b2--prefix=C:\boosttoolset=gcc-j4link=shared.\b2--prefix=C:\boosttoolset=gcc-j4link=sharedinstall我的安装看起来像:C:\boostinclude\boost-1_53\boost--headerslib\--libraries,bothdll